/* Source code in Java for action()... */

/* (c) Copyright 1996 by Software Research, Inc. */

public boolean action(Event event, Object arg)
{
  if (acceptingInput) {
    processInput(text.getText());
  } else {
    prepareForInput();
  }
  text.setText("");
  return true;
}